package newx.com.control.table
{
	import flash.events.Event;
	
	public class NxTableEvent extends Event
	{
		
		public static const TABLE_CLICK				:String		=	"NXTABLE_CLICK";
		public static const TABLE_ROLL_OVER			:String		=	"NXTABLE_Roll_over";
		public static const TABLE_ROLL_OUT			:String		=	"NXTABLE_RollOut";
		public static const TABLE_INDEX_CHANGE		:String		=	"NXTABLE_Index_Change";
		public static const TABLE_COLUMN_SIZE_CHANGE	:String 	=	"TABLE_Column_Size_Change";
		
		/**表格页数发生改变*/
		public static const TABLE_PAGE_CHANGE			:String 	=	"TABLE_Page_Change";
		
		
		private var _pos:NxTabelPos
		
		private var _lineDataArr:Array;
		
		public function NxTableEvent(type:String,val:NxTabelPos, lineDataArr:Array = null ,bubbles:Boolean=false, cancelable:Boolean=false)
		{
			_pos			=	val;
			_lineDataArr	=	lineDataArr;
			super(type, bubbles, cancelable);
		}
		
		/**
		 * 当前被触发的位置 
		 * @return 
		 * 
		 */		
		public function get pos():NxTabelPos
		{
			return _pos;
		}
		
		/**
		 * 获取完整行单元格数据
		 * */
		public function get lineArrData():Array
		{
			return _lineDataArr;
		}
	}
}